<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Filter</title>

    <script src="bower_components/vue/dist/vue.min.js"></script>
</head>
<body>

<div id="demo">
    <!-- in mustaches -->
    {{ message | capitalize }}
</div>

<script type="text/javascript">
    var demo = new Vue({
        el: '#demo',

        data:{
            message : 'hello world'
        },

        filters: {
            capitalize: function (value) {
                if (!value) return ''
                value = value.toString()
                return value.charAt(0).toUpperCase() + value.slice(1)
            }
        }
    })
</script>

</body>
</html>